package cn.com.dycc.common.attach.entity;

import java.io.Serializable;
import java.sql.Timestamp;

public class Attach implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5548715414954082333L;
	
	private String id;			//���
	private String message_no;		//��Ӧ��Ϣ
	private Integer attach_type;    //��������
	private String title;      		//��������
	private String attach_ext;		//������׺
	private String attach_path;		//����·��
	private String attach_size;		//������С
	private String org_id;			//��֯��ʶ
	private Timestamp create_date;	//�����ϴ�ʱ��
	private String opt_user_id;		//������
	
	public Attach(){}

	public Attach(String id, String message_no, Integer attach_type, String title, String attach_ext,
			String attach_path, String attach_size, String org_id, Timestamp create_date, String opt_user_id) {
		super();
		this.id = id;
		this.message_no = message_no;
		this.attach_type = attach_type;
		this.title = title;
		this.attach_ext = attach_ext;
		this.attach_path = attach_path;
		this.attach_size = attach_size;
		this.org_id = org_id;
		this.create_date = create_date;
		this.opt_user_id = opt_user_id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMessage_no() {
		return message_no;
	}

	public void setMessage_no(String message_no) {
		this.message_no = message_no;
	}

	public Integer getAttach_type() {
		return attach_type;
	}

	public void setAttach_type(Integer attach_type) {
		this.attach_type = attach_type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAttach_ext() {
		return attach_ext;
	}

	public void setAttach_ext(String attach_ext) {
		this.attach_ext = attach_ext;
	}

	public String getAttach_path() {
		return attach_path;
	}

	public void setAttach_path(String attach_path) {
		this.attach_path = attach_path;
	}

	public String getAttach_size() {
		return attach_size;
	}

	public void setAttach_size(String attach_size) {
		this.attach_size = attach_size;
	}

	public String getOrg_id() {
		return org_id;
	}

	public void setOrg_id(String org_id) {
		this.org_id = org_id;
	}

	public Timestamp getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Timestamp create_date) {
		this.create_date = create_date;
	}

	public String getOpt_user_id() {
		return opt_user_id;
	}

	public void setOpt_user_id(String opt_user_id) {
		this.opt_user_id = opt_user_id;
	}

	@Override
	public String toString() {
		return "Attach [id=" + id + ", message_no=" + message_no + ", attach_type=" + attach_type + ", title=" + title
				+ ", attach_ext=" + attach_ext + ", attach_path=" + attach_path + ", attach_size=" + attach_size
				+ ", org_id=" + org_id + ", create_date=" + create_date + ", opt_user_id=" + opt_user_id + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Attach other = (Attach) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	
	

}	